---@diagnostic disable: lowercase-global, undefined-global, trailing-space

GLOBAL.setmetatable(env, {__index = function(t, k) return GLOBAL.rawget(GLOBAL, k) end})

---@type string
local modid = 'kukude' -- 定义唯一modid

---@type LAN_TOOL_COORDS
COORDS_kukude = require('core_'..modid..'/utils/coords')
---@type LAN_TOOL_SUGARS
SUGAR_kukude = require('core_'..modid..'/utils/sugar')

rawset(GLOBAL,'COORDS_kukude',CROODS_kukude)
rawset(GLOBAL,'SUGAR_kukude',SUGAR_kukude)


PrefabFiles = {
	-- 'kukude_module_dishes',
	-- 'kukude_module_particle',
    'kkd_fleshsack',
    'kkd_insertobj',
    'kkd_scalpel',

    'fx_io_circle',
}

Assets = {
    Asset("ATLAS","images/slotbg/merged_img_1732977600.xml"),
}
-- 导入mod配置
TUNING[string.upper('CONFIG_'..modid..'_LANG')] = GetModConfigData(modid..'_lang')

-- 导入常量表
modimport('scripts/core_'..modid..'/data/tuning.lua')

-- 导入工具
modimport('scripts/core_'..modid..'/utils/_register.lua')

-- 导入功能API
modimport('scripts/core_'..modid..'/api/_register.lua')

-- 导入语言文件
modimport('scripts/core_'..modid..'/languages/'..TUNING[string.upper('CONFIG_'..modid..'_LANG')]..'.lua')

-- 导入人物
modimport('scripts/data_avatar/data_avatar_kukude.lua')

-- 注册prefab INVIMG
modimport('scripts/core_'..modid..'/callers/register_invimg.lua')

-- 导入调用器
-- modimport('scripts/core_'..modid..'/callers/caller_badge.lua')
modimport('scripts/core_'..modid..'/callers/caller_ca.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_changeactionsg.lua')
modimport('scripts/core_'..modid..'/callers/caller_container.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_dish.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_keyhandler.lua')
modimport('scripts/core_'..modid..'/callers/caller_recipes.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_stack.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_onlyusedby.lua')


-- 导入UI
modimport('scripts/core_'..modid..'/ui/kukude_pedia.lua')

-- 注册客机组件

-- 导入钩子
modimport('scripts/core_'..modid..'/hooks/hookmanager.lua')
modimport('scripts/core_'..modid..'/hooks/kukude_pedia.lua')

-- 导入技能树
-- modimport('scripts/core_'..modid..'/callers/skilltree_lan.lua')

-- 导入sg
modimport('scripts/core_'..modid..'/sg/kukude_scalpel.lua')
